using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using XFFSM;
using XFGameFramework;
public class Fight_Failture : FSMState
{
    private Module module;
    private GameController gameController => module.LoadController<GameController>();
    public override void OnEnter()
    {
        base.OnEnter();

        module = userData as XFGameFramework.Module;
        if (module == null) throw new System.Exception("userData is not Module");

        Debug.Log("Enter Fight_Failture");
    }

    public override void OnExit()
    {
        base.OnExit();
        FightPanel fightPanel = module.GetView<FightPanel>();
        fightPanel.Close();
        Debug.Log("Exit Fight_Failture");
    }
}
